From: Florian Müllner Date: Fri, 6 Sep 2013 08:18:09 +0000 (+0200) Subject: focusCaretTracker: Minor cleanup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3492 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b04c47c15f7bb9de053d159abadc74ef03af3b6e;p=gnome-shell.git focusCaretTracker: Minor cleanup --- diff --git a/js/ui/focusCaretTracker.js b/js/ui/focusCaretTracker.js index c4c4d7f63..4e18e6570 100644 --- a/js/ui/focusCaretTracker.js +++ b/js/ui/focusCaretTracker.js @@ -37,14 +37,10 @@ const FocusCaretTracker = new Lang.Class({ }, _onChanged: function(event) { - let update = null; - if (event.type.indexOf(STATECHANGED) == 0) - update = 'focus-changed'; + this.emit('focus-changed', event); else if (event.type == CARETMOVED) - update = 'caret-moved'; - if(update != null) - this.emit(update, event); + this.emit('caret-moved', event); }, registerFocusListener: function() {